-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce metadata IO during segment allocation #17496
Conversation
server/src/main/java/org/apache/druid/metadata/IndexerSQLMetadataStorageCoordinator.java
Fixed
Show fixed
Hide fixed
@@ -36,6 +36,9 @@ public class TaskLockConfig | |||
@JsonProperty | |||
private long batchAllocationWaitTime = 0L; | |||
|
|||
@JsonProperty | |||
private boolean batchAllocationReduceMetadataIO = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be always on and then we remove this config in next release ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I guess the changes are safe enough. We can always keep it on. Let me try to run ITs with it turned on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flag has been set to true by default.
Thanks for the reviews, @AmatyaAvadhanula , @cryptoe ! |
Revives #17420
Description
The changes here try to reduce metadata IO during segment allocation by fetching segment payloads
for only the required segments. For other segments, only fetching the segment ID suffices.
Changes
druid.indexer.tasklock.batchAllocationReduceMetadataIO
.Release note
Add Overlord runtime property
druid.indexer.tasklock.batchAllocationReduceMetadataIO
.Setting this flag to true (default value) allows the Overlord to fetch only necessary segment payloads during segment allocation.
This PR has: